package ex2.trans;

import ex2.PaymentMethod;
import ex2.method.MailMenthod;

public class ChangeMailTransaction extends ChangeMethodTransaction {

    private String mailAddress;

    public ChangeMailTransaction(int empId, String mailAddress) {
        super(empId);
        this.mailAddress = mailAddress;

    }

    @Override
    protected PaymentMethod getPaymentMethod() {
        return new MailMenthod(mailAddress);
    }

}
